package com.egg.mall.entity.advert;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * <p>
 * 广告表
 * </p>
 *
 * @author east
 * @since 2023-05-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "mall_advert")
@ApiModel(value = "Advert对象", description = "广告表")
public class Advert extends BaseEntity {


    @ApiModelProperty(value = "广告标题")
    @TableField(value = "title")
    private String title;

    @ApiModelProperty(value = "图片地址")
    @TableField(value = "pic_url")
    private String picUrl;

    @ApiModelProperty(value = "开始时间")
    @TableField(value = "begin_time")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "是否启用")
    @TableField(value = "enabled")
    private Boolean enabled;

    @ApiModelProperty(value = "SPUID")
    @TableField(value = "spu_id")
    private Long spuId;

    @ApiModelProperty(value = "排序")
    @TableField(value = "sort")
    private Integer sort;


}
